<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>配置项列表</title>
	<Pintuer />
</head>
<body>
	<div class="container-layout">
		<!-- 导航位置 -->
		<div class="text-small text-gray height-big">
			<div class="float-left height">
				<span class="icon-home"></span>
				当前位置： 首页 -> 系统配置 -> 网站设置
			</div>
			<div class="float-right">
				<div class="radius-rounded height">
					<button type="button" onClick="location.href='{?:U('updateCache')?}'" class="button">
						<span class="icon-magic"></span>
						更新配置缓存
					</button>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<hr />
		<!-- 导航位置 End -->
		<div class="tab">
			<div class="tab-head text-left">
				<ul class="tab-nav">
					<volist name="data" id="i">
						<li  class="padding-little-right <if condition="$i['select'] eq 1">active</if>"><a href="#tab-{?$i.cname?}">{?$i.ctitle?}</a></li>
					</volist>
				</ul>
			</div>
			<div class="tab-body " style="padding-top:5px;">
				<form action="{?:U('webconfig')?}" method="POST">
					<volist name="data" id="c">
						<div class="tab-panel <if condition="$c['select'] eq 1">active</if>" id="tab-{?$c.cname?}">
							<table class="table table-bordered table-hover table-condensed">
								<tr class="bg">
									<td align="center">标题</td>
									<td>配置值</td>
									<td>变量名</td>
									<td>描述</td>
									<td width="150">操作</td>
								</tr>
								<volist name="c._config" id="vo">
									<tr>
										<td align="center">{?$vo.title?}</td>
										<td>{?$vo._html?}</td>
										<td>{?$vo.name?}</td>
										<td>{?$vo.message?}</td>
										<td>
											<if condition="$vo.system eq 0">
												<a href="javascript:;" class="dialogs" data-toggle="click" data-target="#mydialog{?$vo.id?}" data-mask="1" data-width="20%">
													<span class="icon-times"></span>
													删除
												</a>
												<else />
												<span class="text-gray">
													<i class="icon-times"></i>
													删除
												</span>
											</if>
											<!-- 删除确认框 Start -->
											<div id="mydialog{?$vo.id?}">
												<div class="dialog radius-none bouncein">
													<div class="dialog-head">
														<span class="close icon-times"></span>
														<strong>删除确认对话框</strong>
													</div>
													<div class="dialog-body">
														<span class="icon-bitbucket"></span>
														确定删除该数据？
													</div>
													<div class="dialog-foot">
														<button class="button radius-none bg-sub" onClick="location.href='{?:U('del',array('id'=> $vo['id']))?}'">
															<i class="icon-check-square-o"></i>
															确 认
														</button>
														<button class="button radius-none dialog-close">
															<i class="icon-times"></i>
															取 消
														</button>
													</div>
												</div>
											</div>
											<!-- 删除确认框 End -->
										</td>
									</tr>
								</volist>
								<tr>
									<td class="text-center" colspan="7">
										<button type="submit" id="editButton" class="button bg-sub radius-none">
											<i class="icon-check-square-o"></i>
											提交保存
										</button>
										<button type="button" id="delbutton" class="button radius-none" onClick="location.href='{?:U('add')?}'">
											<i class="icon-edit"></i>
											添加配置
										</button>
									</td>
								</tr>
							</table>
						</div>
					</volist>
				</form>
			</div>
		</div>
	</div>
</body>
</html>